package c.h.a.x.t;

import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/* compiled from: IAppData */
public final /* synthetic */ class k {
    public static String a(int i) {
        switch (i) {
            case 0:
                return "General";
            case 1:
                return "Certificate";
            case 2:
                return "Activities";
            case 3:
                return "";
            case 4:
                return "Providers";
            case 5:
                return "Receivers";
            case 6:
                return "Features";
            case 7:
                return "DefPer";
            case 8:
                return "ReqPer";
            default:
                return null;
        }
    }

    public static void b(LayoutInflater layoutInflater, ViewGroup viewGroup, int i, String str, int i2) {
        if (!TextUtils.isEmpty(str)) {
            View inflate = layoutInflater.inflate(2131492907, viewGroup, false);
            ((TextView) inflate.findViewById(16908310)).setText(i);
            ((TextView) inflate.findViewById(16908304)).setText(str);
            viewGroup.addView(inflate);
            inflate.setOnClickListener(new b(i, str, i2));
            inflate.setOnLongClickListener(new a(i, str));
        }
    }
}
